print(sorted([36, 5, -12, 9, -21]))
L = [("Bob", 75), ("Adam", 93), ("Bart", 66), ("Lisa", 88)]


# 按名字：
def by_name(t):
    return t[0].capitalize()


L2 = sorted(L, key=by_name)
print(L2)


# 按分数
def by_score(t):
    return t[-1]


L2 = sorted(L, key=by_score)
print(L2)
